package com.baby.mall.product.service;

import com.baby.mall.product.entity.vo.AttrGroupWithAttrsVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baby.common.utils.PageUtils;
import com.baby.mall.product.entity.AttrGroupEntity;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author qinglongzhai
 * @email qinglongzhai@gmail.com
 * @date 2021-03-15 10:47:09
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 根据id查询出属性分组
     * @Author QLZ
     * @Date 2021/3/16
     *  @param params:
     @param catelogId:
     *  @return: com.baby.common.utils.PageUtils
     */

    PageUtils queryPage(Map<String, Object> params, Long catelogId);

    /**
     *根据分类id查找所有规格参数及分组
     * @Author QLZ
     * @Date 2021/3/17
     *  @param catelogId:
     *  @return: java.util.List<com.baby.mall.product.entity.vo.AttrGroupWithAttrsVo>
     */

    List<AttrGroupWithAttrsVo> getAttrGroupWithAttrsByCatelog(String catelogId);
}

